# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-return-multilevel
pkgver=0.08
pkgrel=4
pkgdesc="Return across multiple call levels"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/Return-MultiLevel"
depends=('perl-data-munge')
checkdepends=('perl-test-fatal')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Return-MultiLevel-$pkgver.tar.gz")
sha512sums=('1ea0da034df794c87b8a2225863194e0ac4c42794bfc59bbbd7e65d755ab2a66d341ea82f99b714220536d980a039b2eab65293180205b4b1ec0f4d56bbfd0d8')

build() {
  cd Return-MultiLevel-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Return-MultiLevel-$pkgver
  make test
}

package() {
  cd Return-MultiLevel-$pkgver
  make DESTDIR="$pkgdir" install
}
